<?php

namespace App\Http\Controllers;

use App\Models\Wechat;
use App\Tyt\Manager\Wechat\WechatManager;

class WechatNodifyController extends Controller
{
    public function nodify()
    {
        $config = Wechat::first();
        $wechat = new WechatManager($config);
        $wechat->payment();
        $response = $wechat->notify();
        return $response;
    }
}